CREATE PROCEDURE SP_UserExists
	@login varchar(50), @password varchar(50)
AS
BEGIN
	SELECT 
		count(*) 
	FROM [USER] 
	WHERE [USER].login = @login 
	AND [USER].password = @password
END
go 
